﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.SignalR;

namespace Cherrs.IM.Server.Core
{
    public class Chat:Hub
    {
        public void Send(string text)
        {
                Clients.All.send(text);
            
        }

        public override Task OnConnected()
        {
            Console.WriteLine(Context.ConnectionId);
            ShareData.co++;
            Console.WriteLine(ShareData.co);
            
            return base.OnConnected();
        }

    }
    
}
